<?php
function rsync($server, $user, $module, $passfile, $filename)
{
	$command = "/usr/local/bin/rsync -vzrtopg --progress ".$filename." ".$user."@".$server."::".$module." --password-file=".$passfile."> /dev/null"; echo "$command<br>";
	//$command = "rsync -vzrtopg --progress ".$filename." ".$user."@".$server."::".$module." --password-file=".$passfile;
	$return = -1;
	system($command, &$return);
	return $return;
}
?>
